package com.xuecheng.manage_cms.web.controller;

import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.manage_cms.service.CmsSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Aniymx on 2018/12/19 19:40.
 * 站点
 */
@RestController
@RequestMapping("/site")
public class CmsSiteController {
    @Autowired
    private CmsSiteService siteService;

    @GetMapping("findAllSite")
    public QueryResponseResult findAll() {
        return siteService.findAll();
    }
}
